package com.itheima.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.dao.InterventionDao;
import com.itheima.pojo.Intervention;
import com.itheima.service.InterventionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import java.util.Date;

@Transactional
@Service(interfaceClass = InterventionService.class)
public class InterventionServiceImpl implements InterventionService {

    @Autowired
    private InterventionDao interventionDao;

    @Override
    public Intervention findInterventionByOrderDate(Date orderDate) {
        return interventionDao.findInterventionByOrderDate(orderDate);
    }
}
